package dao;

import java.util.HashMap;
import java.util.List;

import model.Notice;

import org.springframework.stereotype.Repository;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;

@Repository
public interface NoticeDao {
	public void save(Notice notice);

	public void update(Notice notice);

	public void delete(Integer id);

	public void publish(Integer id);

	public Notice getById(Integer id);

	public List<HashMap<String, Object>> queryPage(PageBounds pageBounds,
			HashMap<String, Object> map);
	
	public List<HashMap<String, Object>> queryPage4All(PageBounds pageBounds,
			HashMap<String, Object> map);
	
	public HashMap<String, Object> queryNotice(Integer id);
}
